import request from '@/utils/request';

export function addCourse(course) {
    return request.post('/courses/add', course);
}

export function deleteCourse(courseId) {
    return request.delete(`/courses/delete/${courseId}`);
}

export function updateCourse(course) {
    return request.put('/courses/update', course);
}

export function getCoursesByUserId(userId) {
    return request.get(`/courses/user/${userId}`);
}
